<?php
    include '../ConfigSite/Smarty/ConfigSmarty.php';
    $smarty = new ConfigSmarty();
    $time = time() - $_SESSION["NowTime"];

    if ( $_SESSION["Usuario"] !== null and $time <= 600) {
           $_SESSION["NowTime"] = time();

        $smarty->setDirectorio('Cursos');
        $smarty->display('IngresarCurso.tpl');

    }  else {
        
        $smarty->setDirectorio("Login");
        $smarty->display("login.tpl");
    }

?>
